;
(function() {
    'use strict';
    angular.module('controllers.dataManager.dataQualityMonitor', [])
        .controller('dataQualityMonitorCtrl', dataQualityMonitorCtrl);
        
    function dataQualityMonitorCtrl($scope, dataQualityMonitorService, CoreService) {
        $scope.pageInfo = dataQualityMonitorService;
        var spans = ['/alarmStatisticsforBP', '/businessFluctuationAlarm', '/dataQualityReport'];
        $scope.selectedIndex = CoreService.navgit(spans);
        $scope.$on('$stateChangeSuccess', function(event, state) {
            $scope.selectedIndex = spans.indexOf(state.url);
        });
    }

    dataQualityMonitorCtrl.$inject = ['$scope', 'dataQualityMonitorService', 'CoreService'];
})();
